package com.laowang.project.system.service.impl;

import java.util.List;
                                                    import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.laowang.project.system.mapper.MyCyhRefundMapper;
import com.laowang.project.system.domain.MyCyhRefund;
import com.laowang.project.system.service.MyCyhRefundService;

/**
 * 退款Service业务层处理
 *
 * @author laowang
 * @date 2024-04-10
 */
@Service
public class MyCyhRefundServiceImpl implements MyCyhRefundService {
    @Autowired
    private MyCyhRefundMapper myCyhRefundMapper;

    /**
     * 查询退款
     *
     * @param id 退款ID
     * @return 退款
     */
    @Override
    public MyCyhRefund selectMyCyhRefundById(String id) {
        return myCyhRefundMapper.selectMyCyhRefundById(id);
    }

    /**
     * 查询退款列表
     *
     * @param myCyhRefund 退款
     * @return 退款
     */
    @Override
    public List<MyCyhRefund> selectMyCyhRefundList(MyCyhRefund myCyhRefund) {
        return myCyhRefundMapper.selectMyCyhRefundList(myCyhRefund);
    }

    /**
     * 新增退款
     *
     * @param myCyhRefund 退款
     * @return 结果
     */
    @Override
    public int insertMyCyhRefund(MyCyhRefund myCyhRefund) {
                                                                                                return myCyhRefundMapper.insertMyCyhRefund(myCyhRefund);
    }

    /**
     * 修改退款
     *
     * @param myCyhRefund 退款
     * @return 结果
     */
    @Override
    public int updateMyCyhRefund(MyCyhRefund myCyhRefund) {
                                                                                                return myCyhRefundMapper.updateMyCyhRefund(myCyhRefund);
    }

    /**
     * 批量删除退款
     *
     * @param ids 需要删除的退款ID
     * @return 结果
     */
    @Override
    public int deleteMyCyhRefundByIds(String[] ids) {
        return myCyhRefundMapper.deleteMyCyhRefundByIds(ids);
    }

    /**
     * 删除退款信息
     *
     * @param id 退款ID
     * @return 结果
     */
    @Override
    public int deleteMyCyhRefundById(String id) {
        return myCyhRefundMapper.deleteMyCyhRefundById(id);
    }
}
